package com.huanletao.tran;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * <p>
 * </p>
 * package: com.huanletao.tran
 * description:
 * className: StudentService
 * author:  踏雪无痕
 * copyright: Copyright (c) 2022/8/23 9:56
 * since: 1.0.0
 */
@Component
public class StudentService {
    @Resource
    JdbcTemplate jdbcTemplateSlave;

    public void insertStdents(){
        jdbcTemplateSlave.update("insert into student(username,password) values(?,?)","关羽","123456");
    }

}
